package com.dc.designPattern._13_command.extend.extend2;

/**
 * Description: 负责人
 * @author: gdc
 * @date: 2021/6/28
 * @version 1.0
 */
public class Invoker {

    /**
     * 指令接口
     */
    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    /**
     * 操作
     */
    public void action() {
        command.execute();
    }
}
